{literal}
<script type="text/javascript">
function add_smilie(code) {
 opener.topic.S1.value = opener.topic.S1.value + ' ' + code + ' ';
 opener.topic.S1.focus();
}
</script>
{/literal}

<div align="center">
  <table class="border" summary="الابتسامات" border="1" cellspacing="1" width="70%">
    <tr>
      <td class="thead" width="50%">الصورة</td>
      <td class="thead" width="50%">الشفرة</td>
    </tr>
    {section name=idx loop=$smiles_row}
    <tr>
      <td class="row3" width="50%"><img alt="" OnClick="add_smilie('{$smiles_row[idx].smile_short}');" src="{$smiles_row[idx].smile_path}" border="0" /></td>
      <td class="row3" width="50%">{$smiles_row[idx].smile_short}</td>
    </tr>
    {/section}
  </table>
</div>
<div align="center"><span class="row3">
<input type="submit" value="اغلق هذه النافذة" name="B1" align="center" onclick="javascript:self.close()"/>
</span></div>